window: copy back window surface data when the implicit paint is flushed
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 6 Dec 2011 23:41:33 +0000 (18:41 -0500)
committerAlexander Larsson <alexl@redhat.com>
Wed, 7 Dec 2011 07:54:09 +0000 (08:54 +0100)
commit8f4f7faa119e18eaf212e661efc542c0a4266b20
treea0eb2e5ce682c572e05747961c1ce1323d064717
parent2fad8eb0c38fbc8a13b334a947086b09cb2b2da3
window: copy back window surface data when the implicit paint is flushed

When an implicit paint is flushed during expose, e.g. because a
non-double buffered widget is painting, make sure to copy the existing
data from the window surface we rendered before flushing back to the
paint surface, instead of using an empty base.
Code was already handling that (and said so in the comment), but only
when no implicit paint was used at all, and not in the case when it's
flushed mid-expose.
gdk/gdkwindow.c